package myjava3d;

import javax.media.j3d.Background;
import javax.media.j3d.BoundingSphere;
import javax.media.j3d.BranchGroup;
import javax.vecmath.Point3d;

public class SceneBackground extends BranchGroup {
	public SceneBackground() {
		//Hintergrund auf Weiß setzen
		Background background = new Background();
	    background.setColor(1.0f,1.0f,1.0f);
	    BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), Double.MAX_VALUE);
	    background.setApplicationBounds(bounds);
	    
	    addChild(background);
	}
}
